// 光伏模块
import request from '@/utils/request'
import settings from '@/settings'
// 获取光伏基础信息
export function getGfDetail(data) {
  return request({
    url: settings.basicPrefix + "/gf2/GfInfo/getGfDetail",
    method: 'post',
    data
  }
  );
}
//  获取光伏基础统计
export function getAccount(params) {
  return request({
    url: settings.basicPrefix + '/gf/bulletinBoard/getAccount',
    method: 'get',
    params
  })
}

// 光伏所在台区反向重过载告警
export function getHeavyOverloadTqByMonth(params) {
  return request({
    url: settings.basicPrefix + '/gf2/GfInfo/getHeavyOverloadTqByMonth',
    method: 'get',
    params
  })
}
// 光伏所在台区高电压告警
export function getOvervoltageCustTqByMonth(params) {
  return request({
    url: settings.basicPrefix + '/gf2/GfInfo/getOvervoltageCustTqByMonth',
    method: 'get',
    params
  })
}
// 光伏出力与台变反送功率对比
export function getGfclAndFsgl(data) {
  return request({
    url: settings.basicPrefix + '/gf2/GfInfo/getGfclAndFsgl',
    method: 'post',
    data
  })
}
// 光伏发电量统计-日
export function getGfFdl(data) {
  return request({
    url: settings.basicPrefix + "/gf2/GfInfo/getGfFdl",
    method: 'post',
    data
  })
}
// 本月过电压用户统计曲线
export function overVoltageUsersStatistic(data) {
  return request({
    url: settings.basicPrefix + "/gf/regionMonitor/overVoltageUsersStatistics",
    method: 'post',
    data
  })
}

// 过电压用户情况
export function overVoltageUsers(data) {
  return request({
    url: settings.basicPrefix + "/gf/regionMonitor/overVoltageUsers",
    method: 'post',
    data
  })
}
// 负载率、三相负荷不平衡度、功率因素
export function getPbMultiAttribute(data) {
  return request({
    url: settings.basicPrefix + "/gf/regionMonitor/getPbMultiAttribute",
    method: 'post',
    data
  })
}
//  反向重过载配变
export function getHeavyOverloadTqLineChart(data) {
  return request({
    url: settings.basicPrefix + "/gf/bulletinBoard/getHeavyOverloadTqLineChart",
    method: 'post',
    data
  })
}
//  全省光伏接入台区高电压用户数
export function getOvervoltageCustLineChart(data) {
  return request({
    url: settings.basicPrefix + "/gf/bulletinBoard/getOvervoltageCustLineChart",
    method: 'post',
    data
  })
}
//  配变负荷情况监测
export function pbEleCurrent(data) {
  return request({
    url: settings.basicPrefix + "/gf/regionMonitor/pbEleCurrent",
    method: 'post',
    data
  })
}
//  本月反向重过载统计
export function getHeavyOverloadStatisticsByMonth(data) {
  return request({
    url: settings.basicPrefix + "/gf/regionMonitor/getHeavyOverloadStatisticsByMonth",
    method: 'post',
    data
  })
}
// 光伏停运告警
export function fetchDataCards(data) {
  return request({
    url: settings.basicPrefix + "/gf-second/mls/fetchDataCards",
    method: 'post',
    data
  })
}

// 光伏反向重过载配变预测准确率
export function getLineAccountElink(data) {
  return request({
    url: settings.basicPrefix + "/gf2/elink/getLineAccountElink",
    method: 'post',
    data
  })
}
// 反向重过载配变（预测）
export function getLineElink(data) {
  return request({
    url: settings.basicPrefix + "/gf2/elink/getLineElink",
    method: 'post',
    data
  })
}